package com.demo1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.PostConstruct;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-10-27
 * Time: 22:55
 */
@Controller
public class BController {
    @Autowired
    private CController cController;

    @PostConstruct
    public void postConstruct() {
        System.out.println("执行 B postConstruct 方法");
    }

    public void SayHi() {
        System.out.println("Say Hi!");
    }
}
